<template>
  <div class="cesium-delete-widgets">
    <div class="delete-widgets-header">
      <div><i class="el-icon-delete-solid" /><span>删除</span></div>
      <div><i class="el-icon-close" @click="closeWidget" /></div>
    </div>
    <div class="delete-widgets-body">body</div>
  </div>
</template>

<script>
export default {
  name: "CesiumDeleteWidgets",
  methods: {
    closeWidget() {
      this.$bus.emit("cesiumBusEvent", "deleteWidgets");
    },
  },
};
</script>

<style  lang="scss" scoped>
.cesium-delete-widgets {
  width: 360px !important;
  min-height: 400px;
  max-height: 600px !important;
  position: fixed;
  right: 10px;
  top: 20px !important;
  z-index: 100000;
  background-color: rgba(0, 0, 0, 0.618);
  box-sizing: border-box;
  box-shadow: 0 0 4px #fff, 0 0 4px #fff inset;
  border-radius: 8px;
  padding: 0 10px;
  color: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  .delete-widgets-header {
    width: 100%;
    height: 40px;
    min-height: 40px;
    // border-bottom: 1px solid #ccc;
    display: flex;
    justify-content: space-between;
    align-items: center;
    & > div > span {
      margin-left: 10px;
      letter-spacing: 2px;
    }
    .el-icon-close {
      transition: all 0.6s;
      transform: scale(1);
      cursor: pointer;
    }
    .el-icon-close:hover {
      transform: scale(2);
    }
  }
  .delete-widgets-body {
    flex: 1;
    width: 100%;
    padding: 0 8px;
    box-sizing: border-box;
    overflow: hidden;
    overflow-y: auto;
  }
}
</style>